package vip.specimen.system.datasource.validation;

import lombok.Getter;
import lombok.Setter;
import vip.specimen.system.datasource.validation.annotation.UserNameUnique;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/24 15:44
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
public class SystemUserInsertValidation extends SystemUserValidation {
    @NotBlank(message = "密码不可为空")
    @Size(min = 6, max = 32, message = "新密码长度不合格")
    private String password;
    @UserNameUnique
    @NotBlank(message = "用户账号不可为空")
    @Size(max = 16, message = "用户账号长度过长")
    private String username;
}
